import { LayoutParentView } from "@/router/constant";

const routes = {
  path: "/menu",
  name: "Menu",
  component: LayoutParentView,
  redirect: "/menu/menu1",
  meta: {
    title: "Menu",
  },
  children: [
    {
      path: "/menu/menu1",
      name: "MenuMenu1",
      component: () => import("@/views/menu/menu1/index.vue"),
      meta: {
        title: "Menu1",
        parentPath: "/menu",
      },
    },
    {
      path: "/menu/menu2",
      name: "MenuMenu2",
      component: () => import("@/views/menu/menu2/index.vue"),
      meta: {
        title: "Menu2",
        parentPath: "/menu",
      },
    },
    {
      path: "/menu/menu2/detail",
      name: "MenuMenu2Detail",
      component: () => import("@/views/menu/menu2/detail/index.vue"),
      meta: {
        title: "menu2详情",
        parentPath: "/menu",
        hideMenu: true,
        activeMenu: "/menu/menu2",
      },
    },
  ],
};

export default routes;
